package org.zpmis.domain.order.enums;

public enum OrderEnum {

    /**
     * 订单是否删除
     */
    NOT_DELETE(0, "未删除"),
    DELETED(1, "已删除"),
    /**
     * 订单状态
     */
    INIT_STATUS(0,"待审核"),
    PROCESS_STATUS(1,"待发货"),
    DELIVER_STATUS(2,"已发货"),
    COMPLETE_STATUS(3,"已签收"),
    REJECT_STATUS(4,"已拒绝"),
    DISCARD_STATUS(5,"订单废弃"),
    /**
     * 收款状态
     */
    UNCOLLECTED_STATUS(0,"未收款"),
    RECEIVED_STATUS(1,"已收款"),

    /**
     * 收款方式
     */
    BEFORE_TYPE(1,"先收款"),
    AFTER_TYPE(2,"后付款"),
    AROUND_TYPE(3,"周期付款"),
    ;

    private int code;
    private String message;

    OrderEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int code() {
        return this.code;
    }


    public String message() {
        return this.message;
    }
}
